package top.coolxue.crud.dao;

import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.cache.decorators.FifoCache;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
import top.coolxue.crud.domain.User;

@Repository
//@CacheNamespaceRef(UserMapper.class)
/*@CacheNamespace(
        eviction = FifoCache.class,
        flushInterval = 6000,
        size = 512,
        readWrite = false,
        implementation = org.mybatis.caches.redis.RedisCache.class
)*/
public interface UserMapper extends Mapper<User> {
}